package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.pojo.User;

import java.util.Map;

public interface UserMapper {

	User findUserByUsername(String username);

	void add(User user);

	void addRelat4Role(Map<String, Integer> map);

	Page<User> queryByCondition(String queryString);

	User findById(Integer id);

	void deleteRelat4Role(Integer userId);

	void update(User user);

	void delete(Integer id);

}
